package cn.kooki.app.duobao.ui.Activity.User;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import java.lang.ref.WeakReference;

import butterknife.Bind;
import butterknife.ButterKnife;
import cn.kooki.app.duobao.R;
import cn.kooki.app.duobao.base.BaseNavActivity;
import cn.kooki.app.duobao.data.Bean.Index.NoticeItem;
import cn.kooki.app.duobao.ui.widget.ClearEditText;

/**
 * Created by xiong on 2015/12/31.
 */
public class FindPassCheckActivity extends BaseNavActivity implements View.OnClickListener {


    @Bind(R.id.et_mobile)
    ClearEditText etMobile;
    @Bind(R.id.et_captcha)
    ClearEditText etCaptcha;
    @Bind(R.id.bt_captcha)
    Button btCaptcha;
    @Bind(R.id.nextSubmit)
    Button nextSubmit;

    @Override
    public void setLayoutContainerView() {
        setContainerView(R.layout.activity_checkphone);
        ButterKnife.bind(this);
    }

    @Override
    protected void afterView() {
        setTitle("验证手机号");
        btCaptcha.setOnClickListener(this);

    }

    private PlayHandler handler = new PlayHandler(this);

    private static class PlayHandler extends Handler {
        private static final long NOTICE_CHANGE_TIME = 5000;
        private final WeakReference<AppCompatActivity> mActivity;

        public PlayHandler(AppCompatActivity activity) {
            mActivity = new WeakReference<AppCompatActivity>(activity);
        }

        @Override
        public void handleMessage(Message msg) {

            if (mActivity.get() == null) {
                return;
            }

        }
    }

    @Override
    public void onClick(View v) {
        if (v == btCaptcha){

        }
    }
}
